import { network } from '@/utils';

import { basic } from '../../../../../config/Apis';

export async function queryDetail(params: any) {
  return network.get(basic.pcStation_cainiao, { params });
}

export async function operSavePartner(params: any) {
  let request: any = '';
  if (params.id) {
    request = network.put(basic.pcStation_cainiao, { data: params });
  } else {
    request = network.post(basic.pcStation_cainiao, { data: params });
  }
  return request;
}
